<include file="public@header"/>

</head>
<body>
<style>
    #btn{
        padding: 2rem;
    }
</style>
<div class="wrap js-check-wrap">
    <form action="" method="post" id="form">
        <input type="hidden" name="id" value="{$Request.get.goods_id}">
        <div class="input-group form-group">
            <label class="input-group-addon">类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型</label>
            <select name="delete" id="" class="form-control">
                <option value="1">不删除</option>
                <option value="2">删除</option>
            </select>
        </div>
        <div class="input-group form-group">
            <label class="input-group-addon">类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型</label>
            <select name="chu_shou" id="" class="form-control">
                <option value="1">未出售</option>
                <option value="2">已出售</option>
            </select>
        </div>
        <div class="input-group form-group">
            <label class="input-group-addon">开始时间</label>
            <input type="text" name="time" id="time" class="form-control">
        </div>
        <div class="input-group form-group">
            <label class="input-group-addon">结束时间</label>
            <input type="text" name="end_time" id="end_time" class="form-control">
        </div>
        <div class="form-group text-center">
            <button class="btn btn-success">提交</button>
        </div>
    </form>

</div>

</body>
</html>
<script src="__STATIC__/js/layer\layer.js"></script>
<script src="__STATIC__/js/lay_date/laydate.js"></script>
<script>
    $(function () {
        $('#form').submit(function () {
            layer.load(1)
            $.post('{:cmf_url("derive")}',$(this).serializeArray(),function (da) {
                layer.closeAll();


                if(da.code){
                    layer.alert('<a href="'+da.data.href+'" id="xia-zai" download="'+da.data.name+'">导出成功 点击下载</a>',{
                        btn:['关闭']
                    })

                }else{
                    layer.msg(da.msg);
                }

            });
            return false;
        });

        laydate.render({
            elem: '#time',
            type:'datetime'
        });
        laydate.render({
            elem: '#end_time',
            type:'datetime'
        })
    })
</script>